wrong ans&runtime error

help