My homework attempt for Secret_Number