Pregunta de entrevista de Premier World Capital

2 python programming questions, various math questions