How many times digit ‘2’ is typed, while typing the page numbers of a book having 100 pages?
A librarian used 2893 digits to number the pages of a book. How many pages does the book have?