You are given a collection of user log arrays where each user's logs are pre-sorted in ascending order. The problem has two parts: Part 1 (Single-User Pagination): Implement a class that, given a user ID, a page size (n), and a page index (i), returns the corresponding page of logs…