what does it mean when a function from real no to real no is continuous at infinitely many pts but between every two points of continuity, there is a point of discontinuity and vice versa?

i dont get how the function will look..

also, in the proof, i do not understand the purpose behind saying that q> ε and then q>1/ε...isit contradicting?

thanks