Here is the Tip for you. Some of the search complexities have been ignored intentionally.
* Build a Class "Designation"
* Designation Class should have Two Attributes. DesignationType and DesignationName
* Take Number of Designations as Input in N
* ArrayList<Designation> designationList = new ArrayList<Designation>()
* For each I in N
* Designation design = new Designation()
* Set design.DesignationName = Take Input
* Set design.DesignationType = Take Input
* designationList.Add(design)
* End For
* Input DesignationType into searchType
* For Each K in N
* design = designationList(K)
* IF (design.DesignationType == searchType)
* Print design.DesignationName
* End If
* End For
* End