Instructions from InterviewBit
1. This is a programming test.
2. The code area contains the function signature, just complete the function alone, we will take care of the main function, headers. etc
3. Use 'Test' to run your solution against sample test cases before submitting it.
4. Use Test with custom input to run your solution against your custom test cases.
5. We run a proprietary plagiarism check on each submission. Please refrain from submitting code which is not written by you.
This test will be active from 15 Sep 2020 9:00 PM IST to 31 Dec 2020 9:00 PM IST. You will have 90 minutes if you start before 31 Dec 2020 7:30 PM IST.
You are free to choose any language from Python (python-2.7), Python 3 (python-3.5).
Please refrain from performing the following restricted events,
Text Selection, Copy & Paste, Right Click, Opening Inspector, Debugging Console, Browser Settings, Switching tabs, Closing the session tab