Detecting Third button press

I just started coding with Arduino. I can barely decipher this image