https://www.codechef.com/viewsolution/20458573
First n=100, your product 123…100 cannot fit in an integer .so use big integer in java to get your result.Thanks