Q keeps eyes and skin healthy so it should be vitamin A.
R keeps bones strong therefore it is vitamin D.
Deficiency of vitamin D (R) causes rickets and vitamin C (P) causes scurvy. Beriberi is caused by deficiency of vitamin B.