Pergunta de entrevista da empresa Ameyo

write the code for finding the nth term of Ap