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 06 Oct 2020 9:00 PM IST to 31 Dec 2021 9:00 PM IST. You will have 300 minutes if you start before 31 Dec 2021 4:00 PM IST.
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