Concept Flow - Peek Front Element of Queue
Start with Queue
Check if Queue is empty?
Yes→Return error or nil
No
Access front element
Return front element without removal
End
The flow checks if the queue is empty, then accesses and returns the front element without removing it.
