adding a function in BIT
adding spoj practice.