dont know how to resolve last function always same stack overflow

Printable View