

PS: This was asked in Amazon OA
List possibleFeatures - List of String
List featureRequests - List of String
Write an Algorithm that identifies the most popular N feature requests
can anybody write the solution for the following methods and signatures
Class Solution
{
public ArrayList popularNFeatures(int numFeatures, int topFeatures, List possibleFeatures, int numFeatureRequests, List featureRequests)
{
//code begins here
}
//method signature ends
}