1. Log and Query Problem 
 Solve the 'Log and Query' problem, ensuring to clarify any constraints and whether sorting is required or not.
2. Frequency of Words 
 Given a body of text, write a function to compute the frequency of each word in the text.
3. Determine the Percentile of a Given Number 
 How would you determine the percentile of a given number? The solution involves converting the explanation of the calculation provided in the problem statement into code.
4. Calculate the Critical Value at a Given Percentile 
 Given a boundary, calculate the critical value at a certain percentile. Ensure to consider edge cases and special conditions in your solution.