This is my solution for the HNG stage2 task in order to proceed to stage 3. You can visit the program here
The answer to question 2 is in the src -> main-> java->com ->example->hngi8x14Gstage2 it is in a file called Question2Task.kt
The solution to question 5 is in the MainActivity.kt