# Challenge: A List as a Subset of Another List

Try to solve the A List as a Subset of Another List problem.

## We'll cover the following

## Statement

Given two lists, `list1`

and `list2`

, implement a function that takes the two lists as input and checks whether `list2`

is a subset of `list1`

.

A

subsetis a set containing only elements present in another set.

**Constraints:**

- $1 \leq$
`list1.length`

$\leq 10^{3}$ - $0 \leq$
`list2.length`

$\leq$`list1.length`

- $10^{-3} \leq$
`list1[i]`

,`list2[i]`

$\leq 10^{3}$ - All the numbers of
`list1`

and`list2`

are unique

## Examples

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.