MathCo Interview Question

Puzzles basic python questions and logical thinking