Little Tommy

I very new on this challenge. But I know what’s a buffer/stack overflow. But I not understood 1) how detect the overflow ? I see that if past A*1000+ overwrite the lastname 2) How to understand that I have to use netcat command ? (I know because I saw a video in the past) only for that!