Tab error, Indentation error at unexpected lines

My code finishes in 16 lines, but an indentation error arose at line 37
Code was in python3

Click here to start solving coding interview questions