How to copy a file with csv in to another bucket

I have 3 buckets in AWS a)test b)testjson c)testcsv

I have upload data.json and data.csv to test bucket

After Uploading the file below things are happend

1. data.json file is copied to testjson bucket
2. data.csv file is copied to testcsv bucket

data.json

```
{
"emp_id": "3",
"Name" : "Madk"
"Company": "FB"
}

```

data.csv

```
emp_id,Name,Company
3,Madk,FB 

```

In this lambda handler only I need to copy .json into another bucket and .csv into another bucket