https://ide.codingblocks.com/s/162839 this is my code in cpp
@tanjuljain19, Please share your code in Java only