Let f:[0,1]→R be a function satisfying
∣f(x)−f(y)∣≤∣x−y∣for every x,y∈[0,1]. Show that for every ε>0 there exists a countable family of rectangles (Ri) of dimensions ai×bi, ai≤bi in the plane such that
{(x,f(x)):x∈[0,1]}⊂i⋃Ri and i∑ai<ε.(The edges of the rectangles are not necessarily parallel to the coordinate axes.)