Bumble Inc. Interview Question

Problem on converting HH:MM and followed up with testing