AKUNA CAPITAL Interview Question

HackerRank coding challenge in Python, 3 questions