alaTest Please download the file and run it. Sample inputs have been mentioned in the screenshot in the repository as the file name Screenshot.jpeg I apologise for I was unable to make the unit test cases in due time.