1. Given a sorted array of integers nums and an integer target, write a function to search target in nums. If the target exists, then return its index. Otherwise, return -1. You must write an algorithm with O(log n) runtime complexity.
2. What are props in React?
3. How do you fetch all input values in JavaScript?
4. Explain inheritance.
5. Given a string, how would you count the number of occurrences of a specific character or substring?