Based on the provisional figures of the 2011 Census, the population densities of the given states were approximately: 1. Bihar: 1106 persons per sq km 2. Kerala: 860 persons per sq km 3. Uttar Pradesh: 829 persons per sq km 4. West Bengal: 1028 persons per sq km Arranging these in descending order of population density gives: Bihar (1106), West Bengal (1028), Kerala (860), Uttar Pradesh (829). The corresponding codes are 1, 4, 2, 3.