Add c, cpp, java, and javascript solutions to challenge 4