Wayfair Interview Question

1. Palindrom 2. Some collection related.