nth term of gp in python when 2 2c3 terms given

Solutions on MaxInterview for nth term of gp in python when 2 2c3 terms given by the best coders in the world