BEE/URI problem no 1181 solution in C

Problem Statement

The problem statement for BEE/URI problem number 1181 is not provided in the user's question. Please provide the problem statement so that I can assist you with the solution and explanations for each step.