HackerEarth Girlfriend and Cats Solved

:)