exam problem solution