leetcode 8.2 dorm