DataStructure Lab problems solved in java