The solution is matched 1836 B . This is a coincidence. Our solutions may be matched because of same approach and same debugging process. I have solved the question on my own. I didn't give public access to my code. I didn't use any website like ideone.com. Please Help......