1. Implement a find functionality (similar to Ctrl+F) in a file. What data structure would you use for this implementation?
2. Given a rotated sorted array, how can you search for a target value efficiently using the binary search algorithm?
3. What is webpack?
4. What are the SQL query optimization techniques?
5. Write a Ruby program to determine if a directory exists and if you have write permissions to it.