Perfect Codingbat Array 2 Solutions