https://ide.geeksforgeeks.org/Ik8xmhB01E
this is the ide link
check now:
if this solves your doubt please mark it as resolved