Meta Interview Question

solve some weird question about heap stack