Cheating Husband Puzzle || Microsoft Interview Puzzle