semaphore first checkin
two hackerearth problem solutions