I'm currently revising my JavaScript knowledge using the CodeWars platform until I'm confident enough to go for Leetcode. So today, I stumbled upon a really easy problem, but I got stuck because I forgot a few important things in that question. Below...