Ntuc Learninghub Interview Question

How to calculate IP classes?