Bank of America interview question

Basic python questions. Standard is not that high