1. Given a counter code in a class component, convert it to a functional component.
2. What is the debounce technique in JavaScript, and how is it implemented?
3. Longest Increasing Subsequence
4. Implement a custom HashMap, including efficient code to search for a key-value pair within a composite object (e.g., object within an object within a main object).
5. How does the garbage collector operate in a heavily loaded environment?