solutions to  the codingbat.com java challenges