Oracle interview question

decimal to fraction conversion using loop