Help me in solving JAMATHMCQ5 problem

My issue

explain apporach

Learning course: Basic Math using Java
Problem Link: CodeChef: Practical coding for everyone

@zohaibanwar
The range for y to be a 5 digit number is option B and option D .