Perfect Codingbat Array 1 Solutions