2666. Allow One Function Call - Explanation

Problem Link